package com.example.activemq.consumer;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

/**
 * mq消费者
 * @date 2019-4-4 11:04:39
 * @author joker
 */
@Service
public class Consumer {

    @JmsListener(destination = "test")
    public void receiveMsg(String text){
        System.out.println("===========>>>>收到消息<<<<===========:"+text);
    }
}
